import { post, get } from '@/utils/http'
import config from '@/config/api'

// 检查账号是否已经存在
export const checkUserApi = username => post(config.checkuser, { username })

// 添加权限节点
export const addUserApi = data => post(config.user, data)

// 用户列表
export const userListApi = (page = 1) => get(config.user + '?page=' + page)
